package com.movie.utils;

import com.movie.beans.ConfigHome;
import com.movie.beans.ConfigLogo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Description : 生成菜单工具类
 * @Author : nlw
 * @Date : 2021/8/28
 */
public class MenuUtil {
    public static Map initMenu(List<?> menuList){
        Map map=new HashMap();
        ConfigHome configHome=new ConfigHome();
        configHome.setHref("");
        configHome.setTitle("首页");
        ConfigLogo configLogo=new ConfigLogo();
        configLogo.setHref("");
        configLogo.setImage("images/logo.png");
        configLogo.setTitle("LAYUI MIN");
        map.put("homeInfo",configHome);
        map.put("logoInfo",configLogo);
        map.put("menuInfo",menuList);
        return map;
    }
}
